using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class MathUtil 
{
    public static int? GetMin(params int?[] list)
    {
        int? min = null;
        foreach(var item in list)
        {
            if(item == null)
            {
                continue;
            }
            if(min == null)
            {
                min = item;
            }
            else if(item < min)
            {
                min = item;
            }
        }
        return min;
    }
}
